<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/1/7
 * Time: 18:25
 */

namespace common\sources\read\regqrcode;

use common\models\craftsman\RegQrCode;

class RegQrCodeAccess implements IRegQrCodeAccess
{
    /**
     * @param $data
     * 获取注册二维码
     */
    public function getRegQrCode()
    {
        $result = RegQrCode::find()
            ->select("qrcode_img")
            ->where(['is_use' => 1])
            ->scalar();
        return $result;
    }
}